#include "GaodeMapProvider.h"

GaodeMapProvider::GaodeMapProvider(const QString &imageFormat,const quint32 averageSize, const QGeoMapType::MapStyle mapType, QObject* parent)
    : MapProvider(QStringLiteral("http://maps.amap.com/maps/api/staticmap"), imageFormat, averageSize, mapType,parent) {}


static const QString RoadMapUrl = QStringLiteral("http://wprd01.is.autonavi.com/appmaptile?x=%1&y=%2&z=%3&lang=zh_cn&size=1&scl=1&style=7");
QString GaodeRoadMapProvider::_getURL(const int x, const int y, const int zoom, QNetworkAccessManager *networkManager)
{
    Q_UNUSED(networkManager)
    return RoadMapUrl.arg(QString::number(x)).arg(y).arg(zoom);
}

